package com.bkhech.home.practice.spring.el.bean_ref;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * AppConfig 启动入口类
 *
 * @author guowm
 * @date 2021/3/3
 */
@ComponentScan("com.bkhech.home.practice.spring.el.bean_ref")
@Configuration
public class AppConfig {

    @Bean
    public AnnotationBean annotationBean() {
        return new AnnotationBean();
    }

    @Bean("addressBean")
    public AddressBean address() {
        return new AddressBean();
    }
    @Bean
    public ElBeanReference elBeanReference() {
        return new ElBeanReference();
    }


    @Bean
    public SpringBeanFactoryBean springBeanFactoryBean() {
        return new SpringBeanFactoryBean();
    }

}
